
//This section builds the graphs for the class breakdown
$(document).ready(function() {

    $('.course_box').hide();
	$('.statistics_box').hide();	
	/*Flots Default Color shceme: 
	 1-yellow
	 2-Blue
	 3-Red
	 4-Green
	 5-Purple
	 */

var data = [];

data[0] = {label: '',color: 'rgb(203,75,75)',data: Math.floor(Math.random() * 100) + 1};    //Disagree Strongly
data[1] = {label: '',color: 'rgb(237,194,64)',data: Math.floor(Math.random() * 100) + 1};   //Disagree
data[2] = {label: '',color: 'rgb(175,216,248)',data: Math.floor(Math.random() * 100) + 1};  //Neutral
data[3] = {label: '',color: 'rgb(148,64,237)',data: Math.floor(Math.random() * 100) + 1};   //Agree
data[4] = {label: '',color: 'rgb(77,167,77)',data: Math.floor(Math.random() * 100) + 1};    //Agree Strongly

	//Start of pie graphs-----------------------------------
	var placeholder = $("#q1");

		$.plot(placeholder, data, {
			series: {
				pie: { 
					show: true,
				}
			},
			legend: {
				show: false
			}
		});

	placeholder.unbind();

	var placeholder = $("#q2");

	$.plot(placeholder, data, {
			series: {
				pie: { 
					show: true,
				}
			},
			legend: {
				show: false
			}
		});

	placeholder.unbind();

	var placeholder = $("#q3");

	$.plot(placeholder, data, {
			series: {
				pie: { 
					show: true,
				}
			},
			legend: {
				show: false
			}
		});

	placeholder.unbind();

	var placeholder = $("#q4");

	$.plot(placeholder, data, {
			series: {
				pie: { 
					show: true,
				}
			},
			legend: {
				show: false
			}
		});

	placeholder.unbind();

	var placeholder = $("#q5");

	$.plot(placeholder, data, {
			series: {
				pie: { 
					show: true,
				}
			},
			legend: {
				show: false
			}
		});

	placeholder.unbind();

	var placeholder = $("#q6");

	$.plot(placeholder, data, {
			series: {
				pie: { 
					show: true,
				}
			},
			legend: {
				show: false
			}
		});

	placeholder.unbind();

	var placeholder = $("#q7");

	$.plot(placeholder, data, {
			series: {
				pie: { 
					show: true,
				}
			},
			legend: {
				show: false
			}
		});

	placeholder.unbind();

	var placeholder = $("#q8");

	$.plot(placeholder, data, {
			series: {
				pie: { 
					show: true,
				}
			},
			legend: {
				show: false
			}
		});

	placeholder.unbind();

	var placeholder = $("#q9");

	$.plot(placeholder, data, {
			series: {
				pie: { 
					show: true,
				}
			},
			legend: {
				show: false
			}
		});

	placeholder.unbind();

	var placeholder = $("#q10");

	$.plot(placeholder, data, {
			series: {
				pie: { 
					show: true,
				}
			},
			legend: {
				show: false
			}
		});

	placeholder.unbind();

	var placeholder = $("#q11");

	$.plot(placeholder, data, {
			series: {
				pie: { 
					show: true,
				}
			},
			legend: {
				show: false
			}
		});

	placeholder.unbind();

	var placeholder = $("#q12");

	$.plot(placeholder, data, {
			series: {
				pie: { 
					show: true,
				}
			},
			legend: {
				show: false
			}
		});

	placeholder.unbind();

	var placeholder = $("#q13");

	$.plot(placeholder, data, {
			series: {
				pie: { 
					show: true,
				}
			},
			legend: {
				show: false
			}
		});

	placeholder.unbind();

	var placeholder = $("#q14");

	$.plot(placeholder, data, {
			series: {
				pie: { 
					show: true,
				}
			},
			legend: {
				show: false
			}
		});

	placeholder.unbind();

	var placeholder = $("#q15");

	$.plot(placeholder, data, {
			series: {
				pie: { 
					show: true,
				}
			},
			legend: {
				show: false
			}
		});

	placeholder.unbind();

	var placeholder = $("#q16");

	$.plot(placeholder, data, {
			series: {
				pie: { 
					show: true,
				}
			},
			legend: {
				show: false
			}
		});

	placeholder.unbind();

	var placeholder = $("#q17");

	$.plot(placeholder, data, {
			series: {
				pie: { 
					show: true,
				}
			},
			legend: {
				show: false
			}
		});
});


function toggle_keys()
{
	$('.course_box').toggle();
	$('.statistics_box').toggle();
}

